package com.atguigu.order.feign;

import com.atguigu.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author polaris
 * @date 2021/1/26 11:01 上午
 */
@FeignClient("gulimall-cart")
public interface CartFeignService {

  @GetMapping("/currentUserCartItems")
  List<OrderItemVo> getCurrentUserCartItems();

  @ResponseBody
  @RequestMapping("/getCheckedItems")
  List<OrderItemVo> getCheckedItems();
}
